import Vue from 'vue'
import App from './App.vue'
import './plugins/element.js'
import moment from 'moment'
import router from './router'

Vue.config.productionTip = false
Vue.prototype.$moment = moment;

import http from './http'
Vue.prototype.$http = http
Vue.mixin({
  computed:{
    uploadUrl(){
      return this.$http.defaults.baseURL+'/upload'
    }
  },
  methods:{
    getAuthHeaders(){
      return{
        Authorizations:`Bearer ${localStorage.token || ''}`
      }
    }
  }
})
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
